<?php 
namespace app\common\model;
class MemberRecom extends Common{
	protected $insert = ['addtime'=>SYS_TIME];
	public function getUsernameAttr($value,$data){
		return db("Member")->where("id",$data['userid'])->value("phone");
	}
}